import {createRouter, createWebHistory} from 'vue-router'

const routes=[
    {
        path:'/',
        component: ()=>import('../views/Index.vue'),
        children:[
            {
                path:'/',
                component: ()=>import('../views/home/Home.vue')
            },
            {
                path:'/feiyu/user',
                component: ()=>import('../views/feiyu/User.vue')
            },
            {
                path:'/feiyu/res',
                component: ()=>import('../views/feiyu/Resource.vue')
            },
            {
                path:'/feiyu/blog',
                component: ()=>import('../views/feiyu/Blog.vue')
            },
            {
                path:'/feiyu/type',
                component: ()=>import('../views/feiyu/Type.vue')
            },
            {
                path:'/feiyu/comment',
                component: ()=>import('../views/feiyu/Comment.vue')
            },
            {
                path:'/system/auth',
                component: ()=>import('../views/system/Account.vue')
            },
            {
                path:'/system/menu',
                component: ()=>import('../views/system/Menu.vue')
            },
            {
                path:'/setting',
                component: ()=>import('../views/Setting.vue')
            },
        ]
    },
    {
        path: '/login',
        component: ()=>import('../views/login/Index.vue')
    }
]
export default createRouter({
    history: createWebHistory(),
    routes
})
